package com.qj.travel.service.impl;

import com.aliyun.vod.client.SnapshotOutput;
import com.qj.travel.db.dao.SnapInfoDao;
import com.qj.travel.db.model.SnapInfoModel;
import com.qj.travel.service.SnapInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Admin on 2016/10/1.
 */
@Service
public class SnapInfoServiceImpl implements SnapInfoService {

    @Autowired
    private SnapInfoDao snapInfoDao;

    public List<SnapInfoModel> getSnapInfoList() {
        return snapInfoDao.getSnapInfoList();
    }

    public List<SnapInfoModel> getSnapBySort(String videoClass, int startRow, int pageSize) {
        return snapInfoDao.getSnapBySort(videoClass,startRow,pageSize);
    }

    public SnapInfoModel getSnapInfo(int videoId) {
        return snapInfoDao.getSnapInfo(videoId);
    }

    public int insertSnapInfo(SnapInfoModel snapInfoModel) {
        return snapInfoDao.insertSnapInfo(snapInfoModel);
    }

    public List<SnapInfoModel> getSnapInfoListByPage(int startRow, int pageSize) {
        return snapInfoDao.getSnapInfoListByPage(startRow, pageSize);
    }

    public int deleteSnap(int snapId) {
        return snapInfoDao.deleteSnap(snapId);
    }

    public List<SnapInfoModel> getSnapPublished(int startRow, int pageSize) {
        return snapInfoDao.getSnapPublished(startRow, pageSize);
    }

    public List<SnapInfoModel> getSnapPublishedBySort(String videoClass, int startRow, int pageSize) {
        return snapInfoDao.getSnapPublishedBySort(videoClass, startRow, pageSize);
    }

    public List<SnapInfoModel> getSnapNotPublished(int startRow, int pageSize) {
        return snapInfoDao.getSnapNotPublished(startRow,pageSize);
    }

    public int updateLock(int videoId) {
        return snapInfoDao.updateLock(videoId);
    }

    public int updatePublish(int videoId) {
        return snapInfoDao.updatePublish(videoId);
    }

    public int cancelPublish(int videoId) {
        return snapInfoDao.cancelPublish(videoId);
    }

    public int updateNotPass(int videoId) {
        return snapInfoDao.updateNotPass(videoId);
    }

    public int updateClass(int videoId, String videoClass) {
        return snapInfoDao.updateClass(videoId,videoClass);
    }

    public List<SnapInfoModel> getSnapByUser(String userId) {
        return snapInfoDao.getSnapByUser(userId);
    }

    public List<SnapInfoModel> getSnapByUserPublished(String userId) {
        return snapInfoDao.getSnapByUserPublished(userId);
    }

    public List<SnapInfoModel> getSnapByUserNotPublished(String userId) {
        return snapInfoDao.getSnapByUserNotPublished(userId);
    }

    public List<SnapInfoModel> getSnapByUserNotPass(String userId) {
        return snapInfoDao.getSnapByUserNotPass(userId);
    }

    public List<SnapInfoModel> getSnapNotPass() {
        return snapInfoDao.getSnapNotPass();
    }


}
